const client = function(opts) {

    this.options = Object.assign({
        version: "2.0",
        timeout: 1000000,
        rootURL: "/gateway/api/jsonrpc.jsp",
        gatewayPath: "/gateway/api/jsonrpc.jsp",
        HaMSID: ""
    },opts);

    if (["1.0" , "2.0"].indexOf(this.options.version) < 0) {
        throw new Error("version not support : " + this.options.version);
    }

    if(this.options.rootURL) {

    } else {
        throw new Error("root URL not defined");
    }

}